var cash = {};
cash.methods = {};

$(function(){
    // 提现表单校验
    cash.methods.identityFormCheck();
    // 提现表单提交
    cash.methods.identityFormSubmit();
})

// 提现表单校验
cash.methods.identityFormCheck = function(){
    //验证规则
    $(".shop-identity-form").validate({

        rules:{
            moneyNumber:{
                required:true,
                number:true
            }
        },
        messages:{
            moneyNumber:{
                required:"请输入提现金额",
                number:"必须输入合法的数字"
            }
        }
    });

}

// 提现表单提交
cash.methods.identityFormSubmit = function(){
    $(".shop-identity-form").on("click",".shop-identity-btn",function(){
        if($(".shop-identity-form").valid()){
            
        }
    })
}